import React from 'react';
import './-page.scss';
import {ColumnExpertMessageItem, ColumnMessageItem} from "components/data/message-item";

class ColumnContentInfo extends React.Component {
    render() {
        let {
            item = {}
        } = this.props || {};

        return (
            <div className={"--column-expert-info"}>
                <ColumnMessageItem item={item}/>
            </div>
        );
    }
}

export class ColumnContentInfoByUser extends React.Component {
    render() {
        let {
            item = {}
        } = this.props;
        let {
            IsPublish,
            ...childItem
        } = item;

        return (
            <div className={"--column-expert-info --column-expert-info-user"}>
                <ColumnExpertMessageItem item={childItem}
                                   textChildren={<span className="--column-state blue font-size-32">
                                           {IsPublish ? '已上架' : '已下架'}
                                   </span>}/>
            </div>
        );
    }
}

export default ColumnContentInfo;